package com.repair.order.utils;

import com.repair.base.response.PageResponse;
import com.repair.base.result.PageResult;

/**
 * @author chunyu
 * @since 2024/10/4,21:13
 */
public class PageResultHandler {

    public static <T> PageResult<T> handle(PageResponse<T> response) {
        return PageResult.ok(response.getData(), response.getTotal(), response.getPageSize(), response.getCurrentPage(), response.getPageTotal());
    }

}
